package com.example.base.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable

/**
 * 登录的实体类
 */
data class LoginEntityResult(
    val code: Int,
    val `data`: LoginEntity,
    val message: String
)
/**
 * 数据库---表  修改表名  主键
 */
@Entity(tableName = "user")
data class LoginEntity(
    val key: String?,
    //修改字段名称
    val nikeName: String,
    val phone: String,
    val token: String,
    val type: String?,
    @PrimaryKey
    val uid: Int
): Serializable